<!doctype html>

<!--[if IE 8 ]>    <html class="no-js ie8"  <?php language_attributes(); ?>> <![endif]-->

<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js"  <?php language_attributes(); ?>> <!--<![endif]-->

<!--[if lte IE 8]>

	<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri().'/ie_style.css'; ?>" />

<![endif]-->

<head>

    <meta charset="<?php bloginfo( 'charset' ); ?>" />

    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">

    <meta name="viewport" content="width=980">

    <?php

		/////////////////   NO MORE GOOGLE BOTS IN SEARCH /////////////////// 

		$google_bots_in_search = get_option('google_bots_in_search', 'no');

		

		if( $google_bots_in_search != 'yes' && is_search() )

       		echo '<meta name="robots" content="noindex, nofollow" />';

	?>

    

    <title><?php bloginfo('name'); wp_title("|", true); ?></title>

      <script type="text/javascript">



  var _gaq = _gaq || [];

  _gaq.push(['_setAccount', 'UA-30480077-1']);

  _gaq.push(['_trackPageview']);



  (function() {

    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

  })();



</script>  

    <?php   

    

        $template_url = get_template_directory_uri();

        

        // So we can use it in footer.php

        global $is_front_page_var;

            $is_front_page_var = is_front_page();

        

        $theme_style_sheet = get_template_directory_uri().'/style.css';

    

        $theme_color =  get_option('theme_color');

        if ( $theme_color == '' ) $theme_color = 'A9BE22';

        

        if ( is_front_page() )

            $skin_page = 'front_page';

        else

            $skin_page = 'other_page';

			

	?>

    

    <link rel="profile" href="http://gmpg.org/xfn/11" />

    <link rel="stylesheet" type="text/css" media="all" href="<?php echo $template_url; ?>/css/skin.php?themecolor=<?php echo $theme_color; ?>&amp;page=<?php echo $skin_page; ?>" />

    <link rel="stylesheet" type="text/css" media="all" href="<?php echo $theme_style_sheet; ?>" />

    <link rel="stylesheet" type="text/css" media="all" href="<?php echo $template_url; ?>/css/slider.php" />

    <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/js/prettyPhoto/css/prettyPhoto.css" media="screen" />

    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />



	<?php

        $custom_css = get_option('custom_css');

        if ( $custom_css != '' )

        {

            echo '<style>';

                echo $custom_css;

            echo '</style>';

        }

    

        $favicon = get_option('favicon');

        if ( $favicon != '' )

            echo ' <link rel="shortcut icon" href="'.$favicon.'" />';

            

        wp_head();

        require_once('js/header_scripts.php');

    ?>



</head>



<body <?php body_class(); ?>>



<?php



	$layout_style = get_option('layout_style');

	if ( $layout_style == '' ) $layout_style = 'full_width';

	

	if ( $layout_style == 'boxed' )

	{

		echo '<div id="theme_box_pattern"></div>';

		echo '<div id="theme_background"></div>';

		echo '<div id="theme_box_background"></div>';

	}

		

?>



<div id="wrapper">
    <div id="topregister">
        <div class="right">
            <span class = "lock"><a href = "" >sign up for newsletter</a></span>
            <div id="getoff">
                <span>Get 10% Off</span>
            </div>
        </div>
    </div><!-- end topregister -->


    <div id="second_wrapper" class="clearfix">

    

        <!-- ## START HEADER ## -->

        <header id="master_header" class="clearfix">

                

            <a id="header_logo" href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">

                <?php

                if ( get_option('logo_img') == '' && get_option('site_tagline') == '0' ) 

                {

                    echo '<div class="text_logo">';

                        echo '<div class="logo">';

                            echo bloginfo('name');

                        echo '</div>';

                    echo '</div>';

                }

                

                if ( get_option('logo_img') == '' && get_option('site_tagline') == '1' ) 

                {

                    echo '<div class="text_logo_with_tagline">';

                        echo '<div class="logo">';

                            echo bloginfo('name');

                        echo '</div>';

                        echo '<div class="tagline">';

                            echo get_option('blogdescription');

                        echo '</div>';

                    echo '</div>';

                }

                

                if ( get_option('logo_img') != '' )

                {

                    echo '<div class="img_logo">';

                        echo '<img src="'.get_option('logo_img').'" alt="logo" />';

                    echo '</div>';

                }

                ?>

            </a>

                <div id = "mk_call_and_add">
                    <img id = "mk_head_call_img" src="<?php echo bloginfo('template_url')?>/images/michael/call.png" alt="">
                    <span id = "mk_head_span_add" >
                        Office 5, lorem lpsum Street, Nummjaj, London
                    </span>
                </div>

            <?php 

                echo '<nav id="header_menu" class="clearfix">';

                    wp_nav_menu( array(

                        'container' => false,

                        'menu_class' => 'nav',

                        'echo' => true,

                        'before' => '',

                        'after' => '',

                        'link_before' => '',

                        'link_after' => '',

                        'depth' => 4,

                        'walker' => new description_walker())

                    );

                echo '</nav>';

            ?>

            <div id="delivery">
                <img id = "mk_head_call_img" src="<?php echo bloginfo('template_url')?>/images/michael/delivery.png" alt="">
                <img id = "mk_head_call_img" src="<?php echo bloginfo('template_url')?>/images/michael/proofs.png" alt="">
                <img id = "mk_head_call_img" src="<?php echo bloginfo('template_url')?>/images/michael/turnaround.png" alt="">
            </div>
        </header><!-- #master_header -->

    

		<?php 

        $front_page_slider = get_option('slider_active');

        

        if ( $front_page_slider == 'yes' && is_front_page() )

        {

			$fp_slider_selection = get_option('slider_selection');

			
            //change slider function by micahel
            mk_write_slider($fp_slider_selection);

        }

		?>